import store from '../store'
let userInfo={
    profile:{},
    token:'',
    role:''
};
let menu = JSON.parse(sessionStorage.getItem('menu'));
userInfo.token = JSON.parse(localStorage.getItem('token'));
userInfo.profile = JSON.parse(sessionStorage.getItem('profile'));
userInfo.role = JSON.parse(sessionStorage.getItem('role'));

store.commit("login/setUser",userInfo);
store.commit("menu/setMenu",menu);



